package com.zhentao.model.common.pojo.income;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author mp
 * @since 2024-12-25
 */
@Getter
@Setter
@TableName("cdz_user_income")
public class CdzUserIncome implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 注解id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 收入类型
     */
    private String type;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 收益
     */
    private double income;

    /**
     * 获取时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;


    //返回的收益
    @TableField(exist = false)
    private String inComes;

}
